#pragma once
#include <ltbasedefs.h>
class back_camera
{
public:
	static back_camera& single();
	~back_camera(void);
	void init();
	void load_screen_size(float wide,float height);
	void set_pos_size(float x,float y,float w,float h);
	HOBJECT get_handle(){return m_obj;}
	void render(float frametime);
	void reset();
	void set_camera_pos(LTVector* _pos);
	void set_camera_rotation(LTRotation* _rotation);
	void set_show(bool _show){m_show=_show;}

	LTVector get_camera_pos();
	LTRotation get_camera_rot();
private:
	bool m_show;
	bool m_reset;
	back_camera(void);
	HLOCALOBJ m_obj;
	float m_width;
	float m_height;
	float m_x;
	float m_y;
	float m_w;
	float m_h;
	//
	LTRect m_rect;

	LTVector m_pos;
	LTRotation m_rot;

	

};
